# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=userrecon
pkgver=10.3b56891
pkgrel=1
pkgdesc='Find usernames across over 75 social networks.'
arch=('any')
groups=('blackarch' 'blackarch-recon' 'blackarch-social' 'blackarch-fingerprint')
url='https://github.com/thelinuxchoice/userrecon'
license=('GPL3')
depends=('curl')
makedepends=('git')
source=("git+https://github.com/thelinuxchoice/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

